package com.yqya.async.task.async;

/**
 * 异步方法异常
 *
 * @author Kevin
 * @date 2019-07-16
 */
public class AsyncException extends RuntimeException {

    /**
     * 错误代码
     */
    private String code;

    public AsyncException() {
        super();
    }

    public AsyncException(String msg) {
        super(msg);
    }

    public AsyncException(String code, String msg) {
        super(msg);
        this.code = code;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

}

